import Vue from 'vue';
// import common from '@/assets/js/common.js';
import api from '../http/http';
import Echarts from 'echarts';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Viewer from 'v-viewer';
import 'viewerjs/dist/viewer.css';
// 将API方法绑定到全局
Vue.use(Viewer);
Viewer.setDefaults({
    Options: { "inline": true, "button": true, "navbar": true, "title": true, "toolbar": true, "tooltip": true, "movable": true, "zoomable": true, "rotatable": true, "scalable": true, "transition": true, "fullscreen": true, "keyboard": true, "url": "data-source" }
});
Vue.prototype.$api = api;
Vue.use(common);
Vue.config.productionTip = false;
Vue.use(ElementUI);
Vue.prototype.echarts = Echarts;
Vue.use(Echarts);
// 启动观察者模式
init.Observer(process.env);
